<?php

use Illuminate\Database\Migrations\Migration;

class GenerateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up ()
    {
        \App\User::insert (['email' => 'gaosi.aitifen@com', 'password' => password_hash ('secret', PASSWORD_BCRYPT)]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down ()
    {
        //
        \DB::table ('users')->truncate ();
    }
}
